package com.ruoyi.system.domain.tree;

import lombok.Data;

import java.util.List;

/**
 * @author tzx
 */
@Data
public class PostTreeNode {
    /**
     * 节点ID
     */
    private Long id;
    /**
     * 节点ID
     */
    private String value;

    /**
     * 父节点ID：顶级节点为0
     */
    private Long parentId;

    /**
     * 节点名称
     */
    private String label;

    /**
     * 子节点
     */
    private List<PostTreeNode> children;

    /**
     * 节点名称
     */
    private Integer isDisposition;

    /**
     * 类型
     */
    private Integer level;

    /**
     * 部门Or岗位
     */
    private Integer type;


    public PostTreeNode(Long id, String value, Long parentId, String label, Integer type, Integer level) {
        this.id = id;
        this.value = value;
        this.parentId = parentId;
        this.label = label;
        this.level = level;
        this.type = type;
    }
}
